//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class MineUseTool extends LogicCommand {
    final int cmdId = 64;
    final int toolId;

    public MineUseTool(int ticks, int toolId) {
        super(ticks);
        this.toolId = toolId;
    }

    public int getCommandId() {
        return 64;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(64);
        stream.writeInt(this.toolId);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
